#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
int main()
{
    if(fork() == 0 )
    {
        while(1)
        {
            printf("I am child... myPid:%d myPPid:%d\n",getpid(),getppid());            sleep(1);
        }
    }
    else 
    {

        int count = 5;
        while(count--)
        {
            printf("I am father... myPid:%d myPPid:%d\n",getpid(),getppid());
            sleep(1);
        }
        printf("I am father ... I quit\n");
    }
    return 0;
}